package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:40
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class ClassStudentRelateBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.ClassStudentRelate classStudentRelate;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(classStudentRelate);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.IClassStudentRelateDAO.Id);
		
																														
				
																																								
				
																
		mappedDaoFields.put("classId",com.ourteam.education.dao.IClassStudentRelateDAO.ClassId);
		
																										
				
																																								
				
																				
		mappedDaoFields.put("studentId",com.ourteam.education.dao.IClassStudentRelateDAO.StudentId);
		
																						
				
																																								
				
																								
		mappedDaoFields.put("relateType",com.ourteam.education.dao.IClassStudentRelateDAO.RelateType);
		
																		
				
																																								
				
																												
		mappedDaoFields.put("deleteFlag",com.ourteam.education.dao.IClassStudentRelateDAO.DeleteFlag);
		
														
				
																																								
				
																																
		mappedDaoFields.put("status",com.ourteam.education.dao.IClassStudentRelateDAO.Status);
		
										
				
																																								
				
																																				
		mappedDaoFields.put("remarks",com.ourteam.education.dao.IClassStudentRelateDAO.Remarks);
		
						
				
																																								
				
																																		
				
										
		mappedDaoFields.put("studentName",com.ourteam.education.dao.IClassStudentRelateDAO.StudentName);
																																
				
																																		
				
																		
		mappedDaoFields.put("studentGender",com.ourteam.education.dao.IClassStudentRelateDAO.StudentGender);
																								
				
																																		
				
																										
		mappedDaoFields.put("contactsRelation",com.ourteam.education.dao.IClassStudentRelateDAO.ContactsRelation);
																
				
																																		
				
																																		
		mappedDaoFields.put("contactsPhone",com.ourteam.education.dao.IClassStudentRelateDAO.ContactsPhone);
								
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public ClassStudentRelateBean() {
		super();
	    		
		this.classStudentRelate = new com.ourteam.education.dao.ClassStudentRelate();
                
	}
	
		
	public ClassStudentRelateBean(com.ourteam.education.dao.ClassStudentRelate classStudentRelate) {
		super();
	
		this.classStudentRelate = classStudentRelate;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.ClassStudentRelate convertToClassStudentRelate(){
		return this.classStudentRelate;
	}
	
	public com.ourteam.education.dao.ClassStudentRelate convertTo(){
		return this.classStudentRelate;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.classStudentRelate.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.classStudentRelate.setId(id);
	}
		
															
			
																					
		
		
					
			
		
	/**
	 * Get classId
	 * 
	 * @return long
	 */
	public long getClassId(){
		return (long) this.classStudentRelate.getClassId();
	}
	
	/**
	 * Set classId
	 * 
	 * @parameter long
	 */
	public void setClassId(long classId){
		
		this.classStudentRelate.setClassId(classId);
	}
		
													
			
																					
		
		
							
			
		
	/**
	 * Get studentId
	 * 
	 * @return long
	 */
	public long getStudentId(){
		return (long) this.classStudentRelate.getStudentId();
	}
	
	/**
	 * Set studentId
	 * 
	 * @parameter long
	 */
	public void setStudentId(long studentId){
		
		this.classStudentRelate.setStudentId(studentId);
	}
		
											
			
																					
		
		
									
			
		
	/**
	 * Get relateType
	 * 
	 * @return String
	 */
	public String getRelateType(){
		return (String) this.classStudentRelate.getRelateType();
	}
	
	/**
	 * Set relateType
	 * 
	 * @parameter String
	 */
	public void setRelateType(String relateType){
		
		this.classStudentRelate.setRelateType(relateType);
	}
		
									
			
																					
		
		
											
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return long
	 */
	public long getDeleteFlag(){
		return (long) this.classStudentRelate.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter long
	 */
	public void setDeleteFlag(long deleteFlag){
		
		this.classStudentRelate.setDeleteFlag(deleteFlag);
	}
		
							
			
																					
		
		
													
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.classStudentRelate.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.classStudentRelate.setStatus(status);
	}
		
					
			
																					
		
		
															
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.classStudentRelate.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.classStudentRelate.setRemarks(remarks);
	}
		
			
			
																					
		
		
																
			
					
			
		
	/**
	 * Get studentName
	 * 
	 * @return String
	 */
	public String getStudentName(){
		
		return (String) this.classStudentRelate.getStudentName();
			
	}
	
																	
		
		
																
			
									
			
		
	/**
	 * Get studentGender
	 * 
	 * @return String
	 */
	public String getStudentGender(){
		
		return (String) this.classStudentRelate.getStudentGender();
			
	}
	
													
		
		
																
			
													
			
		
	/**
	 * Get contactsRelation
	 * 
	 * @return String
	 */
	public String getContactsRelation(){
		
		return (String) this.classStudentRelate.getContactsRelation();
			
	}
	
									
		
		
																
			
																	
			
		
	/**
	 * Get contactsPhone
	 * 
	 * @return String
	 */
	public String getContactsPhone(){
		
		return (String) this.classStudentRelate.getContactsPhone();
			
	}
	
					
		
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof ClassStudentRelateBean) == false) {
            return false;
        } // end if

        ClassStudentRelateBean other = (ClassStudentRelateBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.ClassStudentRelate tempClassStudentRelate = other.convertToClassStudentRelate();
        
        if(tempClassStudentRelate == null || this.classStudentRelate == null){
        	isEqual = false;
        }
        else if(tempClassStudentRelate == this.classStudentRelate || tempClassStudentRelate.equals(this.classStudentRelate) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static ClassStudentRelateBean[] toArray(com.ourteam.education.dao.ClassStudentRelate[] aClassStudentRelates){
		
		return toArray(aClassStudentRelates,null);
	}
	
	public static ClassStudentRelateBean[] toArray(com.ourteam.education.dao.ClassStudentRelate[] aClassStudentRelates , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aClassStudentRelates)){
		 	return new ClassStudentRelateBean[0];
		 }
		 
		 int length = aClassStudentRelates.length;
		 
		 ClassStudentRelateBean[] beans = new ClassStudentRelateBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new ClassStudentRelateBean(aClassStudentRelates[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aClassStudentRelates[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}